const express = require("express");
const router = express.Router();
const { NavieAdminRouterList,
    GetAppAdminRouterList,
    GetV1AdminRouterList,
    GetV2AdminRouterList,
    GetAdminCustomize,
    UpdateAdminCustomize } = require("../../../api/router")
router.get("/NavieAdminRouterList", (req, res) => {
    NavieAdminRouterList(req).then(result => {
        res.send(result)
    }).catch(err => {
        res.send(err)
    })
})
router.get("/GetAppAdminRouterList", (req, res) => {
    GetAppAdminRouterList(req).then(result => {
        res.send(result)
    }).catch(err => {
        res.send(err)
    })
})
router.get("/GetV1AdminRouterList", (req, res) => {
    GetV1AdminRouterList(req).then(result => {
        res.send(result)
    }).catch(err => {
        res.send(err)
    })
})
router.get("/GetV2AdminRouterList", (req, res) => {
    GetV2AdminRouterList(req).then(result => {
        res.send(result)
    }).catch(err => {
        res.send(err)
    })
})
router.get("/GetAdminCustomize", (req, res) => {
    GetAdminCustomize(req).then(result => {
        res.send(result)
    }).catch(err => {
        res.send(err)
    })
})
router.post("/UpdateAdminCustomize", (req, res) => {
    UpdateAdminCustomize(req).then(result => {
        res.send(result)
    }).catch(err => {
        res.send(err)
    })
})
module.exports = router;